#include <iostream>
using std::cout;
using std::cin;
using std::endl;

class A {
protected:
    int m_a = 10;
};
class B
    :private A
{
public:
    void print() {
        cout << m_a << endl;
    }
};

void test() {
    A a;
    B b;
    b.print();
    // b.m_a;
}
int main() {
    test();
    return 0;
}